FileSystemPackageReader.FileExists Method (string)

Gets a value indicating whether the file exists in the package.

Parent Type: FileSystemPackageReader

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public override bool FileExists (
string filePath

)

Parameters

filePath

The package-relative path to the file. This path should have no URL encoding.

Return Value

true if the file exists and the caller has permission to access it; otherwise false.

Permissions
Name Description
System.Security.Permissions.FileIOPermission

for reading files. Associated enumeration: System.Security.Permissions.FileIOPermissionAccess.Read.

Remarks

filePath is a relative path to the packageBasePath parameter of the FileSystemPackageReader constructor.